package com.mallcloud.mall.app.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 微信小程序配置
 */
@Slf4j
@Data
@Component
@ConditionalOnProperty("const.wxapp.appId")
@ConfigurationProperties(prefix = "const.wxapp")
public class WechatConfig {

    private String appId;

    private String appSecret;
}
